#include <stdio.h>

int main()
{
    int n = 0, k = 0, modula = 0;
    scanf("%d %d", &n, &k);
    modula = (k-n) % 33;
    if (modula)
        printf("%d", 19 + ((k-n)/33));
    else printf("%d", 18 + (k-n)/33);
    return 0;
}
